<template>
	<div>{{ moduleId }}{{ itemId }}</div>
</template>

<script setup>
import { post } from "../utils";

import { ref, onMounted } from "vue";

const props = defineProps({
	flowId: {
		type: Number,
		required: false,
		default: 0
	},
	moduleId: {
		type: String,
		required: false,
		default: ""
	},
	itemId: {
		type: Number,
		required: false,
		default: 0
	}
});

const flowModuleInfo = ref({});
const getFlowModuleInfo = moduleId => {
	return post("flow/moduleInfo", { module_id: moduleId }).then(data => {
		flowModuleInfo.value = data;
	});
};

onMounted(async () => {
	//获取当前模块的审批流信息
	await getFlowModuleInfo(props.moduleId);
});
</script>
